//
//  MarketHomeCell.m
//  CenturyCity
//
//  Created by beisheng03 on 2017/11/22.
//  Copyright © 2017年 beisheng. All rights reserved.
//

#import "MarketHomeCell.h"

@interface MarketHomeCell ()

@property (weak, nonatomic) IBOutlet UIImageView *bgImageView;

@property (weak, nonatomic) IBOutlet UIImageView *bottomImageView;

@property (weak, nonatomic) IBOutlet UILabel *leftLabel;
@property (weak, nonatomic) IBOutlet UILabel *middleLabel;

@end

@implementation MarketHomeCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.contentView.backgroundColor = randomColor;
    
    self.leftLabel.font = MYFONT(17);
    
    self.middleLabel.font = MYFONT(15);
    // Initialization code
}

-(void)setData:(NSDictionary *)data{
    _data = data;
    
    self.leftLabel.text = _data[@"title"];
    self.middleLabel.text = _data[@"subTitle"];
    
    [self.bgImageView sd_setImageWithURL:[NSURL URLWithString:_data[@"image"]]];

    
    
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
